package com.dwy2002.enums;

/**
 * @author 杜伟毅
 * @version 1.0
 * @since 2025/01/26
 */
public enum OssEnum {

    /**
     * 默认头像链接
     */
    DEFAULT_AVATAR_URL("https://test-dwy.oss-cn-shenzhen.aliyuncs.com/Cloud-Water-Tea-Appointment/avatar/e7f44f4a15bf44aac5f75e2a0c649b79_260_260.jpg"),
    /**
     * 暂无图片URL
     */
    DEFAULT_URL("https://test-dwy.oss-cn-shenzhen.aliyuncs.com/Cloud-Water-Tea-Appointment/default/9aece5ec2bda4b47bd70d69d2992b22a2ff9777f9c45483b9a0a3b6f9b0894b9.jpeg"),

    /**
     * 存放头像的文件夹名
     */
    AVATAR("Cloud-Water-Tea-Appointment/avatar/"),
    /**
     * 存放课程图片的文件夹名
     */
    COURSES_IMAGE("Cloud-Water-Tea-Appointment/courses_images/"),
    /**
     * 存放包间图片的文件夹名
     */
    ROOM_IMAGE("Cloud-Water-Tea-Appointment/room_images/"),

    PRODUCT_IMAGE("Cloud-Water-Tea-Appointment/product_images/");

    private final String url;

    OssEnum(String url) {
        this.url = url;
    }

    // 获取路径的方法
    public String getUrl() {
        return url;
    }
}
